package simple

func CarFactory(name string) Car {
	switch name {
	case "benz":
		return &Benz{Name: "benz"}
	case "toyota":
		return &Toyota{Name: "toyota"}
	default:
		return nil
	}
}
